package com.xxj.puzzlesheep;

import android.view.KeyEvent;
import android.view.MotionEvent;

import com.xxj.puzzlesheep.core.LGraphics;
import com.xxj.puzzlesheep.core.LImage;
import com.xxj.puzzlesheep.core.LScreen;

public class PuzzleMenuScreen extends LScreen {

	private LImage imgMenuBack;
	private PuzzleMain main;

	public PuzzleMenuScreen(String menuBack, PuzzleMain main) {
		super();
		this.imgMenuBack = getLAImage(menuBack);
		this.main = main;
	}

	@Override
	public void draw(LGraphics g) {
		g.drawImage(imgMenuBack, 0, 0);
	}

	@Override
	public boolean onTouchDown(MotionEvent e) {
		PuzzleView view = main.getView();
		view.setScreen(new PuzzleGameScreen("backimage1.jpg",
				"over.png", 4, 4,main));
//		view.setShowFPS(true);
//		view.mainLoop();
		return false;
	}
	
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onKeyUp(int keyCode, KeyEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouchMove(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouchUp(MotionEvent e) {
		// TODO Auto-generated method stub
		return false;
	}

}
